package com.example.myapplication.s3

const val INFO = "Derry is Success Result"

// Kotlin 语言的substring
fun main(){
    val indexOf = INFO.indexOf('i')
    println(INFO.substring(0, indexOf))
    println(INFO.substring(0 until indexOf))  // KT基本上用此方式： 0 until indexOf
}